package com.chucang.shucang.usr.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/10/6 8:03
 * @description
 */
@Data
public class UserBlindBoxOnConsignVO implements Serializable {
    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空！")
    private Long userId;
    /**
     * 商品id
     */
    @NotNull(message = "盲盒id不能为空！")
    private Long bbId;
    /**
     * 编号list
     */
    @Size(min = 1, max = 50, message = "至少一个参数！最多同时上架50个！")
    private List<Integer> serialNums;
    /**
     * 单价
     */
    @NotBlank(message = "出售单价不能为空")
    private String unitPrice;
}
